package com.sp.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sp.model.entity.BillIncomplete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 未完成账单 Mapper
 *
 * @author tong
 * @date 2024/3/16 9:37
 */
@Mapper
public interface BillIncompleteMapper extends BaseMapper<BillIncomplete> {

    /**
     * 根据车牌号查询未完成的账单
     *
     * @param carNumber
     * @return
     */
    BillIncomplete selectByCarNumber(@Param("carNumber") String carNumber);

    /**
     * 根据账单id删除未完成的账单
     *
     * @param billIds
     * @return
     */
    int deleteByBillId(@Param("billIds") List<Integer> billIds);

    /**
     * 根据用户id查询未完成账单
     *
     * @param userId
     * @return
     */
    BillIncomplete selectByUserId(@Param("userId") Integer userId);

}
